﻿@model EyeOpen.Combinatorics.Mvc.Models.TeamModelQuery
@{
	var updateTargetId = "teams";
	
	var options = 
		new AjaxOptions
			{
				HttpMethod = "Post",
				UpdateTargetId = updateTargetId,
			};
}        
 
@using (Ajax.BeginForm(options))
{
	<fieldset>
		<legend>Team</legend>
		<div>
			@Html.LabelFor(m => m.Names)
			@Html.EditorFor(m => m.Names)
			@Html.ValidationMessageFor(m => m.Names)
		</div>
		<div>
	   		@Html.LabelFor(m => m.Groups)
			@Html.EditorFor(m => m.Groups)
			@Html.ValidationMessageFor(m => m.Groups)
		</div>

		<input type="submit" value="Show" />
	</fieldset>
}			
<div id="@updateTargetId"></div>